﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HynuIOTA.Entity.FormatEntity
{
    public class PageData
    {
        /// <summary>
        /// 页索引
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 页面大小
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 行总数
        /// </summary>
        public int RowCount { get; set; }

        /// <summary>
        /// 页总数
        /// </summary>
        public int PageCount => (int)Math.Ceiling((double)RowCount / PageSize);

        /// <summary>
        /// 页集合
        /// </summary>
        public object PageList { get; set; }
    }
}
